import preprocessor;
import codegen;
import analysis;
//import writer;
//import descriptor;

import std.file;
import std.stdio;

void main(char[][] args)
{
    if(args.length <2)
    {
        writefln("no input files");
        return ;
    }
    PreProcessor a = new PreProcessor(args[1]);
    a.Scan();
    //for(int i =0; i < a.tokens.length ; i++)
    //{
    //    writefln(a.tokens[i].info ~": "~a.tokens[i].token);
    //}
    Analysis anl = new Analysis(a.tokens,args[1]);
    CodeGen dcode = new CodeGen(anl.filedescriptor);
}

